import java.util.Random;
public class random
{
public static void main(String[] args)
{
Random x = new Random();

float num1;
int num2;

num1 = x.nextFloat()*20-10;
System.out.println(num1);

num2 = (int)num1;
System.out.println(Integer.toHexString(num2));
}
}

